package main

import "fmt"

func main() {
	i := 10
	str := "mike"

	func() {
		i = 100
		str = "go"
		//内部i = 100 str = go
		fmt.Printf("内部i = %d,str = %s\n", i, str)
	}()

	fmt.Printf("外部 i = %d,str=%s", i, str)
}
